package com.hundsun.cprs.yyt.service.rabbit.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;
import org.springframework.stereotype.Component;

@Component
public class MatchPostProcessListener implements MessageListener {

    @Override
    public void onMessage(Message message) {
        String receviedRoutingKey = message.getMessageProperties().getReceivedRoutingKey();
        System.out.println(receviedRoutingKey + ":" +new String(message.getBody()));
    }

}
